import instance from '../axios.service.js';
import {HistoryPushBody, DetailBody} from "../types";
export default {
    getHistoryPushData: (data: HistoryPushBody) => instance.post(`/aispire/mobile/get_push_history`, data),// 历史推送
    getArticleDetail: (data: HistoryPushBody) => instance.post(`/aispire/mobile/get_detail`, data),// 推送内容详情
    recommend: (data: {uid: string, date: string}) => instance.post(`/aispire/mobile/personalized_rec`, data),// 首页推荐
    getDirFileList: (data: {uid: string, dir_id: string}) => instance.post(`/aispire/dir_op/list`, data),// 获取用户指定文件夹下的文件及文件夹
    syncMyThinkTank: (data: any) => instance.post(`/aispire/mobile/synchronize_doc_2_my_knowledge`, data),// 将文章同步到我的智库
    articleRecommend: (data: {uid: string, id: string}) => instance.post(`/aispire/mobile/similar`, data),// 相似推荐接口
    getOrderList: (pageIndex, pageSize) => instance.get(`/app-api/pay/vip-order/page?pageNo=${pageIndex}&pageSize=${pageSize}`),// 订单列表
    getVipInfo: () => instance.get(`/app-api/pay/vip-order/vip-verify`),// 查看当前用户会员信息
    getUserInfo: (data) => instance.post(`/aispire/user_info/get`, data),// 获取用户头像昵称等信息

}
